<?php
require("../../../class2.php");
require("../library/admin/adminapi.php");

if(!getperms("P")){header("location:".e_BASE."index.php"); exit; }
require_once(e_ADMIN."auth.php");

if($_POST["subbed"]) {
    e107shop_process_content($_POST["faction"], $_POST["function_name"], $_POST["function"], 
    $_POST["attributeid"], $_POST["position"], $_POST["function_title"]);
}

//
// Display the list of functions
//
e107shop_product_current_content($_GET["g"]);

//
// Display the form
//
e107shop_manage_content($_GET["a"], $_GET["p"]);

require_once(e_ADMIN."footer.php");
